/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_tj_sp")
//@NamedQueries({@NamedQuery(name = "TTjSp.findAll", query = "SELECT t FROM TTjSp t"), @NamedQuery(name = "TTjSp.findById", query = "SELECT t FROM TTjSp t WHERE t.id = :id"), @NamedQuery(name = "TTjSp.findByScode", query = "SELECT t FROM TTjSp t WHERE t.scode = :scode"), @NamedQuery(name = "TTjSp.findByCyear", query = "SELECT t FROM TTjSp t WHERE t.cyear = :cyear"), @NamedQuery(name = "TTjSp.findByCmonth", query = "SELECT t FROM TTjSp t WHERE t.cmonth = :cmonth"), @NamedQuery(name = "TTjSp.findByCday", query = "SELECT t FROM TTjSp t WHERE t.cday = :cday"), @NamedQuery(name = "TTjSp.findByChour", query = "SELECT t FROM TTjSp t WHERE t.chour = :chour"), @NamedQuery(name = "TTjSp.findByDownloadnumber", query = "SELECT t FROM TTjSp t WHERE t.downloadnumber = :downloadnumber"), @NamedQuery(name = "TTjSp.findByOrdernumber", query = "SELECT t FROM TTjSp t WHERE t.ordernumber = :ordernumber"), @NamedQuery(name = "TTjSp.findBySname", query = "SELECT t FROM TTjSp t WHERE t.sname = :sname"), @NamedQuery(name = "TTjSp.findBySpname", query = "SELECT t FROM TTjSp t WHERE t.spname = :spname")})
public class TTjSp implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Column(name = "scode")
    private String scode;
    @Column(name = "cyear")
    private String cyear;
    @Column(name = "cmonth")
    private String cmonth;
    @Column(name = "cday")
    private String cday;
    @Column(name = "chour")
    private String chour;
    @Column(name = "downloadnumber")
    private Integer downloadnumber;
    @Column(name = "ordernumber")
    private Integer ordernumber;
    @Column(name = "sname")
    private String sname;
    @Column(name = "spname")
    private String spname;

    public TTjSp() {
    }

    public TTjSp(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getScode() {
        return scode;
    }

    public void setScode(String scode) {
        this.scode = scode;
    }

    public String getCyear() {
        return cyear;
    }

    public void setCyear(String cyear) {
        this.cyear = cyear;
    }

    public String getCmonth() {
        return cmonth;
    }

    public void setCmonth(String cmonth) {
        this.cmonth = cmonth;
    }

    public String getCday() {
        return cday;
    }

    public void setCday(String cday) {
        this.cday = cday;
    }

    public String getChour() {
        return chour;
    }

    public void setChour(String chour) {
        this.chour = chour;
    }

    public Integer getDownloadnumber() {
        return downloadnumber;
    }

    public void setDownloadnumber(Integer downloadnumber) {
        this.downloadnumber = downloadnumber;
    }

    public Integer getOrdernumber() {
        return ordernumber;
    }

    public void setOrdernumber(Integer ordernumber) {
        this.ordernumber = ordernumber;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSpname() {
        return spname;
    }

    public void setSpname(String spname) {
        this.spname = spname;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TTjSp)) {
            return false;
        }
        TTjSp other = (TTjSp) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TTjSp[id=" + id + "]";
    }

}
